case $CONFIG in
    '') . config.sh ;;
esac
outputfile=getfiles
rm -f $outputfile.$$
echo "Creating $outputfile (with variable substitutions)"
if cat >$outputfile.$$ <<!GROK!THIS!
#! /bin/sh
#
# RCSid[] = "@(#)$Header: getfiles.SH,v 3.1 86/10/15 08:23:52 pb Rel $"
#
# getfiles all the relevant files from the salford machine
#  there are quite a few, but most only have one or two lines.
#
#	If you have problems with salfords address, it is currently
#		000014901000/SPCP.FTP

#	THE NEXT LINE IS AUTOMATICALLY UPDATED WHEN \`Makefile' IS UPDATED
hhcp -L "nrs!make.nrs>database>derfil2" $datadir/new/$dirsample
!GROK!THIS!
then if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
	then
		rm -f $outputfile.$$
		echo "	" $outputfile not affected
	elif mv $outputfile.$$ $outputfile
	then
		echo "	" $outputfile updated
		chmod +x $outputfile
	else
		echo "+++	" $outputfile left in $outputfile.$$
	fi
else
	echo "	" Failed to create $outputfile.$$
fi
